




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/15/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectaccept.struts.actions;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.application.attachment.entity.Attachment;
import com.application.attachment.service.AttachmentService;
import com.application.attachment.struts.form.AttachmentForm;
import com.application.usertable.entity.Usertable;
import com.application.yfexamine.entity.YfExmaine;
import com.application.yfexamine.service.YfExmaineService;
import com.application.yfexamine.struts.form.YfExmaineForm;
import com.application.yfplacefile.entity.YfPlacefile;
import com.application.yfplacefile.service.YfPlacefileService;
import com.application.yfprojectaccept.commons.Constants;
import com.application.yfprojectaccept.entity.YfProjectAccept;
import com.application.yfprojectaccept.service.YfProjectAcceptService;
import com.application.yfprojectaccept.struts.form.YfProjectAcceptForm;
import com.manager.commons.CommonUtil;
import com.manager.commons.DisplayTagPageBean;
import com.manager.commons.RandomKey;
import com.manager.commons.page.PageBean;
import com.manager.workflow.WorkFlowConstants;
import com.manager.workflow.core.WorkFlowCommon;
 /**
 * 
 * Description:YfProjectAcceptAction<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060    <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 
 * 
 */
public class YfProjectAcceptAction extends DispatchAction
{
       
       /**
	 * Service层实例
	 */
	private YfProjectAcceptService yfProjectAcceptService;
	
	private AttachmentService attachmentService;
	
	private WorkFlowCommon workFlowCommon;
	
	private YfExmaineService yfExmaineService;
	
	private YfPlacefileService yfPlacefileService;

	/**
	 * 日志
	 */
	private Logger log = Logger.getLogger(this.getClass());

	/**
	 * 实体对象
	 */
        private YfProjectAccept yfProjectAccept;


        /**
	 * 采用partialList方式分页程序
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public ActionForward getYfProjectAcceptPartialList(ActionMapping mapping,
			ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		log.debug("searchYfProjectAccept" + "开始");
		YfProjectAcceptForm yfProjectAccept = (YfProjectAcceptForm)form;
		// 统计总记录数的sql语句
		int resultSize = 0;
		// 初始化pageBean供分页所用
		PageBean pageBean = null;
		// 取得当前页list数据
		List yfProjectAcceptList = null;
		resultSize = yfProjectAcceptService.getAllCountYfProjectAccept(yfProjectAccept);
		pageBean = PageBean.getPageBean("yfProjectAcceptTab", resultSize,request);
		yfProjectAcceptList = yfProjectAcceptService.searchYfProjectAccept(yfProjectAccept,pageBean);
		request.setAttribute("yfProjectAcceptList", yfProjectAcceptList);
		request.setAttribute("orgSelect", CommonUtil.getOrgSelectNoZB());
		log.debug("searchYfProjectAccept" + "结束");

		return mapping.findForward(Constants.SUCCESS);
	}

        /**
	 * 到达新增页面
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward toAddYfProjectAccept(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		log.debug("toAddYfProjectAccepts");
		YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
		yfProjectAcceptForm.setId(RandomKey.generateID_Long_19());
		request.setAttribute("orgSelect", CommonUtil.getOrgSelectNoZB());
		return mapping.findForward(Constants.SUCCESS);
	}

	/**
	 * 增加
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward addYfProjectAccept(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		log.debug("addYfProjectAccepts");
		YfProjectAccept yfProjectAccept = this.getYfProjectAccept(form);
		 yfProjectAccept.setOperateid(CommonUtil.getCurrentUser(request).getId());
		 yfProjectAccept.setCreateDate(new Date());
		 yfProjectAccept.setAuditStatus(WorkFlowConstants.AUDIT_STATUS_1);
		this.yfProjectAcceptService.insertObject(yfProjectAccept);

		return mapping.findForward(Constants.SUCCESS);
	}
        
	/**
	 * 删除
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward deleteYfProjectAccept(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		log.debug("deleteYfProjectAccepts");
		YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
		this.yfProjectAcceptService.deleteYfProjectAccepts(yfProjectAcceptForm);
		String serverPath=CommonUtil.ATTACHE_FILE;
		if(StringUtils.isBlank(serverPath)){
			serverPath=request.getSession().getServletContext().getRealPath("/"); 
		}
		AttachmentForm attachmentForm = new AttachmentForm();
		attachmentForm.setFid(yfProjectAcceptForm.getId().toString());
		attachmentForm.setType(com.manager.commons.Constants.FJ_TYPE_ACCEPT);
		List<Attachment> attachment = attachmentService.queryAttachment(attachmentForm);
		if(attachment!=null && attachment.size()>0){
			for (Attachment attachment2 : attachment) {
				File file = new File(serverPath + attachment2.getUrl());
		        file.delete();
				attachmentService.deleteObject(attachment2);
				
			}
		}
		return mapping.findForward(Constants.SUCCESS);
	}

	/**
	 * 到达更新页面
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward toUpdateYfProjectAccept(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		log.debug("toUpdateYfProjectAccepts");

		YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
		yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
		request.setAttribute(Constants.YFPROJECTACCEPT, yfProjectAccept);
		request.setAttribute("orgSelect", CommonUtil.getOrgSelectNoZB());
		return mapping.findForward(Constants.SUCCESS);
	}

        
	/**
	 * 更新
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward updateYfProjectAccept(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		log.debug("updateYfProjectAccepts");
		YfProjectAccept yfProjectAccept = this.getYfProjectAccept(form);
	        yfProjectAccept.setOperateid(CommonUtil.getCurrentUser(request).getId());
		 yfProjectAccept.setCreateDate(new Date());
		this.yfProjectAcceptService.updateObject(yfProjectAccept);

		return mapping.findForward(Constants.SUCCESS);
	}
        
	/**
	 * 查看页面
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward viewYfProjectAccept(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		log.debug("viewYfProjectAccept");
		YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
		yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
		request.setAttribute(Constants.YFPROJECTACCEPT, yfProjectAccept);
		String processId = yfProjectAccept.getProcessId();
		if(StringUtils.isNotBlank(processId)){
			examineList(processId, yfExmaineService, request);
		}
		request.setAttribute("orgSelect", CommonUtil.getOrgSelectNoZB());
		
		return mapping.findForward(Constants.SUCCESS);
	}

	// get--set
	/**
	 * @return the YfProjectAcceptService
	 */
	public YfProjectAcceptService getYfProjectAcceptService() {
		return this.yfProjectAcceptService;
	}

	/**
	 * @param YfProjectAcceptService
	 *  the YfProjectAcceptService to set
	 */
	public void setYfProjectAcceptService(YfProjectAcceptService yfProjectAcceptService) {
		this.yfProjectAcceptService = yfProjectAcceptService;
	}

	/**
	 * 获取YfProjectAccept实体
	 * @param ActionForm
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 * @return the YfProjectAccept
	 */
	public YfProjectAccept getYfProjectAccept(ActionForm form) throws IllegalAccessException, InvocationTargetException {
		YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
		yfProjectAccept = new YfProjectAccept();
		BeanUtils.copyProperties(yfProjectAccept, yfProjectAcceptForm);
		return yfProjectAccept;
	}
    
        public void setYfProjectAccept(YfProjectAccept yfProjectAccept) {
		this.yfProjectAccept = yfProjectAccept;
	}

		public AttachmentService getAttachmentService() {
			return attachmentService;
		}

		public void setAttachmentService(AttachmentService attachmentService) {
			this.attachmentService = attachmentService;
		}

		public WorkFlowCommon getWorkFlowCommon() {
			return workFlowCommon;
		}

		public void setWorkFlowCommon(WorkFlowCommon workFlowCommon) {
			this.workFlowCommon = workFlowCommon;
		}

		public YfExmaineService getYfExmaineService() {
			return yfExmaineService;
		}

		public void setYfExmaineService(YfExmaineService yfExmaineService) {
			this.yfExmaineService = yfExmaineService;
		}
		
		/**
		 * 提交审核
		 * 
		 * @param mapping
		 * @param form
		 * @param request
		 * @param response
		 * @return ActionForward
		 * @throws Exception
		 */
		public ActionForward submitWorkFlowYfProjectAccept(ActionMapping mapping, ActionForm form,
				HttpServletRequest request, HttpServletResponse response)
				throws Exception {
			log.debug("submitWorkFlowYfProjectAccept");
			String submitType = request.getParameter("submitType");
			//新增界面直接提交
			if(StringUtils.isNotBlank(submitType) && "add".equals(submitType)){
				yfProjectAccept = this.getYfProjectAccept(form);
				yfProjectAccept.setOperateid(CommonUtil.getCurrentUser(request).getId());
				yfProjectAccept.setCreateDate(new Date());
				this.yfProjectAcceptService.insertObject(yfProjectAccept);
			}
			if(StringUtils.isNotBlank(submitType) && "update".equals(submitType)){
				yfProjectAccept = this.getYfProjectAccept(form);
				
				YfProjectAcceptForm tempForm = new YfProjectAcceptForm();
				tempForm.setId(yfProjectAccept.getId());
				YfProjectAccept old = yfProjectAcceptService.searchYfProjectAccept(tempForm,null).get(0);
				yfProjectAccept.setProjectType(old.getProjectType());
				yfProjectAccept.setProjectOrg(old.getProjectName());
			}else{
				YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
				yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
			}
			Map<String,String> mapVar = new HashMap<String,String>();
			mapVar.put("bussId", yfProjectAccept.getId().toString());
			mapVar.put("bussType", WorkFlowConstants.BUSS_TYPE_YSSP.toString());
			mapVar.put("projectName", yfProjectAccept.getProjectName().toString());
			mapVar.put("projectType", yfProjectAccept.getProjectType().toString());
			mapVar.put("projectOrg", yfProjectAccept.getProjectOrg().toString());
			mapVar.put("projectNo", yfProjectAccept.getProjectNo().toString());
			mapVar.put("ownYear","0");  //中试 暂时不放  

			String processId = workFlowCommon.startFlow(WorkFlowConstants.PORCESS_DEFINITION_YS,CommonUtil.getCurrentUser(request).getId(),mapVar);
		
			yfProjectAccept.setProcessId(processId);
			yfProjectAccept.setAuditStatus(WorkFlowConstants.AUDIT_STATUS_2);
			yfProjectAccept.setOperateid(CommonUtil.getCurrentUser(request).getId());
			yfProjectAccept.setCreateDate(new Date());
			this.yfProjectAcceptService.updateObject(yfProjectAccept);
			return mapping.findForward(Constants.SUCCESS);
		}

		/**
		 * 进入审核页面
		 * @param mapping
		 * @param form
		 * @param request
		 * @param response
		 * @return ActionForward
		 * @throws Exception
		 */
		public ActionForward toAuditYfProjectAccept(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			log.debug("toAuditYfProjectPilot");
			YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
			String bussId = request.getParameter("bussId");
			String processId = request.getParameter("processId");
			String workItemId = request.getParameter("workItemId");
			String bussType = request.getParameter("bussType");
			request.setAttribute("bussType",bussType);
			yfProjectAcceptForm.setId(bussId);
			yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
			yfProjectAccept.setWorkItemId(workItemId);
			request.setAttribute(Constants.YFPROJECTACCEPT, yfProjectAccept);
			examineList(processId,yfExmaineService,request);
			request.setAttribute("orgSelect", CommonUtil.getOrgSelectNoZB());
			return mapping.findForward(Constants.SUCCESS);
		}
		
		
		/**
		 * 指定会审团成员
		 * @param mapping
		 * @param form
		 * @param request
		 * @param response
		 * @return ActionForward
		 * @throws Exception
		 */
		public ActionForward assignActor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			log.debug("assignActor");
			YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
			String bussId = request.getParameter("bussId");
			String processId = request.getParameter("processId");
			String workItemId = request.getParameter("workItemId");
//			yfProjectAcceptForm.setId(bussId);
//			yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
//			yfProjectAccept.setWorkItemId(workItemId);
//			request.setAttribute(Constants.YFPROJECTACCEPT, yfProjectAccept);
//			examineList(processId,yfExmaineService,request);
			return mapping.findForward(Constants.SUCCESS);
		}
		
		/**
		 * 处理审批 提交流程
		 * @param mapping
		 * @param form
		 * @param request
		 * @param response
		 * @return
		 * @throws Exception
		 */
		public ActionForward commandFlowYfProjectAccept(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			log.debug("commandFlowYfProjectPilot");
			YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
			yfProjectAccept = this.yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm, null).get(0);
			Map processVar = new HashMap();
			String acctype =  yfProjectAcceptForm.getAccType();
			//指派会审团人员
			if("assign".equals(acctype)){
				String[] personList = yfProjectAcceptForm.getJointPerson().split(",");
			    List list = new ArrayList();
		        for (int i = 0; i < personList.length; i++) {
		        	if(StringUtils.isNotBlank(personList[i])){
		        		list.add(personList[i]);
		        	}
				}
				processVar.put("bussId", yfProjectAccept.getId().toString());
				processVar.put("bussType", WorkFlowConstants.BUSS_TYPE_YSSP.toString());
				processVar.put("projectName", yfProjectAccept.getProjectName().toString());
				processVar.put("projectType", yfProjectAccept.getProjectType().toString());
				processVar.put("projectOrg", yfProjectAccept.getProjectOrg().toString());
				processVar.put("projectNo", yfProjectAccept.getProjectNo().toString());
				processVar.put("ownYear", "0");
				processVar.put("yfbussTaskType",WorkFlowConstants.BUSS_TASK_TYPE_JOIN);
				String workItemId = yfProjectAcceptForm.getWorkItemId();
				workFlowCommon.commandFlowDynamicAssign(workItemId, processVar, list);
			}else{
				YfExmaine examine = addYfExmaine(yfProjectAcceptForm,request);
				Usertable user = (Usertable) request.getSession().getAttribute("loginUser");
				yfExmaineService.insertObject(examine);
				List actorList = new ArrayList();
				if(examine.getExamineFlag().equals(WorkFlowConstants.AUDIT_STATUS_AGREE)){
					processVar.put("approveFlag","agree");
					if(Boolean.valueOf(user.getIsFGFZ())){
						yfProjectAccept.setAuditStatus(WorkFlowConstants.AUDIT_STATUS_3);
						yfProjectAcceptService.updateObject(yfProjectAccept);
						processVar.put("bussId", yfProjectAccept.getId().toString());
						processVar.put("bussType", WorkFlowConstants.BUSS_TYPE_YSSP.toString());
						processVar.put("projectName", yfProjectAccept.getProjectName().toString());
						processVar.put("projectType", yfProjectAccept.getProjectType().toString());
						processVar.put("projectOrg", yfProjectAccept.getProjectOrg().toString());
						processVar.put("projectNo", yfProjectAccept.getProjectNo().toString());
						processVar.put("ownYear", "0");
						processVar.put("yfbussTaskType",WorkFlowConstants.BUSS_TASK_TYPE_NORMAL);
						String workItemId = yfProjectAcceptForm.getWorkItemId();
						workFlowCommon.commandFlow(workItemId, processVar);
						placeFile(yfProjectAccept,request);//资料归档
					}else{
						String workItemId = yfProjectAcceptForm.getWorkItemId();
						processVar.put("bussId", yfProjectAccept.getId().toString());
						processVar.put("bussType", WorkFlowConstants.BUSS_TYPE_YSSP.toString());
						processVar.put("projectName", yfProjectAccept.getProjectName().toString());
						processVar.put("projectType", yfProjectAccept.getProjectType().toString());
						processVar.put("projectOrg", yfProjectAccept.getProjectOrg().toString());
						processVar.put("projectNo", yfProjectAccept.getProjectNo().toString());
						processVar.put("ownYear", "0");
						processVar.put("yfbussTaskType",WorkFlowConstants.BUSS_TASK_TYPE_NORMAL);
						workFlowCommon.commandFlow(workItemId, processVar);
					}
				}else if(examine.getExamineFlag().equals(WorkFlowConstants.AUDIT_STATUS_DISAGREE)){
					processVar.put("approveFlag","disagree");
					if(yfProjectAcceptForm.getBussType() != WorkFlowConstants.BUSS_TASK_TYPE_JOIN){
						yfProjectAccept.setAuditStatus(WorkFlowConstants.AUDIT_STATUS_4);
						yfProjectAcceptService.updateObject(yfProjectAccept);
					}
					processVar.put("bussId", yfProjectAccept.getId().toString());
					processVar.put("bussType", WorkFlowConstants.BUSS_TYPE_YSSP.toString());
					processVar.put("projectName", yfProjectAccept.getProjectName().toString());
					processVar.put("projectType", yfProjectAccept.getProjectType().toString());
					processVar.put("projectOrg", yfProjectAccept.getProjectOrg().toString());
					processVar.put("projectNo", yfProjectAccept.getProjectNo().toString());
					processVar.put("ownYear", "0");
					processVar.put("yfbussTaskType",WorkFlowConstants.BUSS_TASK_TYPE_NORMAL);
					String workItemId = yfProjectAcceptForm.getWorkItemId();
					workFlowCommon.commandFlow(workItemId, processVar);
				}
			}
			
			
			
			
		

			return mapping.findForward(Constants.SUCCESS);
		}
		
		/***
		 * 资料归档
		 */
		private void placeFile(YfProjectAccept yfProjectAccept,HttpServletRequest request){
			YfPlacefile placeFile = new YfPlacefile();
			placeFile.setId(RandomKey.generateID_Long_19());
			placeFile.setAccId(yfProjectAccept.getId());
			placeFile.setOperateid(CommonUtil.getCurrentUser(request).getId());
			placeFile.setCreateDate(new Date());
			placeFile.setProjectNo(yfProjectAccept.getProjectNo());
			AttachmentForm attachmentForm = new AttachmentForm();
			attachmentForm.setBak1(yfProjectAccept.getProjectNo());
			attachmentForm.setInclude("'10002','10003','10004','10005','10006','10007','10008','10009','30000','30001','30002','30003','30004','30005'");
			List attachList = attachmentService.queryAttachment(attachmentForm);
			int num = 0;
			if(attachList!=null && attachList.size()>0){
				num = attachList.size();
			}
			placeFile.setFileNum(Long.valueOf(num));
			yfPlacefileService.insertObject(placeFile);
		}
		/**
		 * Description: TODO 组合审批意见对象,添加
		 * 
		 * @param form
		 * @param request
		 * @return ActionForward
		 */
		public YfExmaine addYfExmaine(ActionForm form, HttpServletRequest request) {

			YfProjectAcceptForm yfProjectAcceptForm = (YfProjectAcceptForm) form;
			// 审核标识
			String examineFlag = yfProjectAcceptForm.getExamineFlag();
			// 审核意见
			String examineOption = yfProjectAcceptForm.getExamineOption();
			String processId = yfProjectAcceptForm.getProcessId();
			YfExmaine yfExmaine = new YfExmaine();
			 
			yfExmaine.setId(RandomKey.generateID_Long_19());
			yfExmaine.setExamineFlag(examineFlag);
			yfExmaine.setExamineOption(examineOption);
			yfExmaine.setProcessId(processId);
			yfExmaine.setExamineDate(new Date());
			if(request.getSession().getAttribute("loginUser")!=null){
				Usertable curUser = (Usertable) request.getSession().getAttribute("loginUser");
				yfExmaine.setExaminePerson(curUser.getRname());
				if(curUser.getRoleList().size()>1){
					String roleName = workFlowCommon.getRoleNameByActivityId(yfProjectAcceptForm.getWorkItemId(),1);
					yfExmaine.setExamineOrg(roleName);
				}else{
					yfExmaine.setExamineOrg(curUser.getRoleList().get(0).getName()); //无法处理同一个人有多个审批角色
				}
				
			}
			return yfExmaine;
		}
		
		 /*
		 * Description: TODO 查看显示意见
		 * 
		 * @param processInsId
		 * @param examine
		 * @param examineService
		 * @param examineLis
		 * @param request
		 *        void
		 */
		public void examineList(String processInsId, YfExmaineService yfExmaineService, HttpServletRequest request) throws Exception {
			YfExmaineForm yfExmaineForm = new YfExmaineForm();
			yfExmaineForm.setProcessId(processInsId);
			// 审批列表
			List<YfExmaine> examineList = yfExmaineService.searchYfExmaine(yfExmaineForm, null);
			// 防止页面出错
			int resultSize = 0;
			if(examineList != null && !examineList.isEmpty()) {
				resultSize = examineList.size();
			}
			DisplayTagPageBean.getPageBean("examine", resultSize, 0, request);
			request.setAttribute("examineList", examineList);

		}

		public YfPlacefileService getYfPlacefileService() {
			return yfPlacefileService;
		}

		public void setYfPlacefileService(YfPlacefileService yfPlacefileService) {
			this.yfPlacefileService = yfPlacefileService;
		}

}
